import { ICommonParams, IHeaders } from '@feidao/service/interfaces';
import { HTMLElement } from 'node-html-parser';
import s from './ns';

import init from '@feidao/web/framework/nodejs/d/component';
import { id, spaceid, systemid, refsystemid } from './config';

import tpl from './tpl';

export default function main(html: HTMLElement, url: string, msg: ICommonParams, headers: IHeaders, query: any) {
	const actions = {};

	return init(id, tpl, s, actions, html, url, msg, headers, query, { spaceid, systemid, refsystemid });
}
